import request from '/@/utils/request'
import {prefix} from '/@/api/oa'

export function getStaffEduList(params: object) {
    return request({
        url: prefix + '/staffEdu/getStaffEduList',
        method: 'get',
        params
    })
}

export function createEdu(data: object) {
    return request({
        url: prefix + '/staffEdu/create',
        method: 'post',
        data
    })
}

export function editEdu(data: object) {
    return request({
        url: prefix + '/staffEdu/edit',
        method: 'post',
        data
    })
}

export function removeEdu(data: object) {
    return request({
        url: prefix + '/staffEdu/delete',
        method: 'post',
        data
    })
}